package com.example.questionnaire.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.questionnaire.entity.ResultEntity;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 
 *
 * @author hsz
 * @email 1416446590@qq.com
 * @date 2022-10-29 11:20:56
 */
public interface ResultService extends IService<ResultEntity> {

    PageUtils queryPage(Map<String, Object> params);

    int collectResult(ResultEntity resultEntity);

    int queryIfCanAnswer(int questionnaire_id,int answerer_id);

    boolean submit(ResultEntity resultEntity);
}

